<template>
    <div>
        home组件
        {{msg}} --- {{pmsg}}
        <button @click="sendData">sendData</button>
    </div>
</template>
<script>
export default {
    data() {
        return {
            msg:'hahah'
        }
    },
    props:["pmsg"],
    methods: {
        sendData(){
            this.$emit("myevent",{
                aa:"aaaa"
            })
        }
    },
}
</script>
<style lang="">
    
</style>